package com.wind.taobao.api.trade.trade.rest
{
	import com.wind.taobao.api.trade.trade.convert.RefundConvert;
	import com.wind.taobao.api.trade.trade.model.Refund;
	import com.wind.taobao.core.webservice.TaobaoResponse;

	/**
	 * taobao.refund.get Response
	 * @author fxy
	 *
	 */
	public class RefundGetResponse extends TaobaoResponse
	{
		public var refund:Refund;

		public function RefundGetResponse(response:TaobaoResponse=null)
		{
			super(response);
			initRefund();
		}

		private function initRefund():void
		{
			if (body != null && this.isSuccess)
			{
				if (body["rsp"].hasOwnProperty("refunds"))
					refund=RefundConvert.convertRefund(body["rsp"]["refunds"][0]);
			}
		}

	}
}